<?php
/**
 * Created by PhpStorm.
 * User: jocky
 * Date: 2017/6/27
 * Time: 上午10:20
 */
?>
<div id="page_content">
    <?php
    //定义内容承载区
    $str = "";
    foreach ($menus as $val) {
        if ($val['childNum'] == 0) {
            $str .= "
                    <div class='content_detail' id='menu_" . $val['id'] . "_div' style='display:none;margin-bottom:80px;'>
                        <div class='text-center' style='height: 100%'>
                            <img style='margin: 150px 0;' src='/images/loading.gif'/>
                        </div>
                    </div>
            ";
        } else {
            foreach ($val['child'] as $v) {
                $str .= "
                    <div class='content_detail' id='menu_" . $v['id'] . "_div' style='display:none;margin-bottom:80px;'>
                        <div class='text-center' style='height: 100%'>
                            <img style='margin: 150px 0;' src='/images/loading.gif'/>
                        </div>
                    </div>
                ";
            }
        }
    }
    echo $str;
    ?>
</div>

